package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 排班顺位详情
 * </p>
 *
 * @author hpiggy
 * @since 2024-08-16
 */
@TableName("cis_position_detail")
@ApiModel(value = "CisPositionDetail对象", description = "排班顺位详情")
@Data
public class CisPositionDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("cis_position表id")
    private Long positionId;

    @ApiModelProperty("年级")
    private Integer yearClassId;

    @ApiModelProperty("顺位值")
    private Integer positionNum;

    @ApiModelProperty("班型id")
    private Long classTypeId;

    @TableField(exist = false)
    private String classTypeName;

    @ApiModelProperty("人数")
    private Integer peopleNum;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @ApiModelProperty("0为正常，1为删除")
    @TableLogic
    private Integer deleted;
}
